package com.base.common.persistent.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.base.common.persistent.model.AttendanceRecord;
import com.cjy.common.annotation.MyBatisRepository;

@MyBatisRepository
public interface AttendanceRecordMapper {

	/**
	 * 插入考勤记录
	 * 
	 * @param attendanceRecord
	 * @return
	 */
	int addAttendanceRecord(AttendanceRecord attendanceRecord);

	/**
	 * 根据时间和员工id查询签到记录
	 * 
	 * @param employeeId
	 * @param compoundsId
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	List<AttendanceRecord> queryAttendanceRecordByMonth(
			@Param(value = "employeeId") int employeeId,
			@Param(value = "compoundsId") int compoundsId,
			@Param(value = "startTime") Date startTime,
			@Param(value = "endTime") Date endTime);

	List<Object> manageQueryAttendanceRecord(@Param(value = "compoundsId") int compoundsId,
											 @Param(value = "startTime") Date startTime,
											 @Param(value = "endTime") Date endTime);
}
